﻿using DMC.Core.Models.Queries;
using MiniFox.Components;
using MiniFox.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DMC.Core.Models.Dto;

namespace DMC.Core.Services
{
    /// <summary>
    /// 
    /// </summary>
    [AutoRegister]
    public interface IConnectionService
    {
        ResultObject<object[]> GetDbProviders();
        void Test(ConnectionTestDto connectionTestDto);
        ConnectionDto Create(ConnectionDto connection);
        ConnectionDto Update(ConnectionDto connection);
        void Delete(ConnectionDto connection);
        ResultObject<IEnumerable<ConnectionDto>> Query(QueryObject<ConnectionQuery> request);
        void Sync();

    }
}
